package com.labbit.platform.commons.exception;


import com.labbit.platform.commons.exception.message.ExceptionMessage;

/**
 * @Description 业务异常工具类
 * @Date 2019-07-28 16:11
 * @Author CHEN YU
 **/
public class ExInfo {

    /**
     * 业务异常提示信息
     */
    public static void throwsException(ExceptionMessage message) throws BusinessException {
        throw new BusinessException(message);
    }

    /**
     * 异常
     */
    public static void throwsException(ServiceException exception) throws BusinessException {
        throw new BusinessException(exception.getExceptionMessage());
    }

}
